import req from "@/utils/request.js";
// 申请处方
export const applyPrescription = data => {
	return req({
		url: "store/apply/prescription",
		method: "POST",
		data
	})
}
// 获取申请运动处方数据
export const getPrescription = () => {
	return req({
		url: "store/apply/prescription/data",
		method: "get"
	})
}
/* 医生处方管理列表 */
export const patientRecipe = data => {
	return req({
		url: "dashboard/doctor/prescribeList",
		method: "get",
		data
	})
}
/* 用户运动处方 */
export const prescribeList = data => {
	return req({
		url: "center/prescribeList",
		method: "get",
		data
	})
}
/* 
 * 处方详情
 */
export const recipeDetail = data => {
	return req({
		url: "dashboard/doctor/prescribeCompleteDetail",
		method: "get",
		data
	})
}
/* 
 * 运动处方模板
 */
export const exerciseTemplates = () => {
	return req({
		url: "dashboard/doctor/exerciseTemplates",
		method: "get"
	})
}
/* 
 * 生成运动方案风险评估
 */
export const riskAssessment = data => {
	return req({
		url: "dashboard/prescribe/riskAssessment",
		method: "POST",
		data
	})
}
/* 
 * 运动处方处理
 */
export const savePrescribe = data => {
	return req({
		url: "dashboard/doctor/savePrescribe",
		method: "POST",
		data
	})
}
/* 
 * deepseek生成处方方案
 */
export const aiChatPrescribe = data => {			
	return req({
		url: "dashboard/aichat/prescribe",
		method: "POST",
		data,
		showLoad: false
	})
}